# Makefile for libpng - te@dbs.uni-hannover.de

# This file (together with libpng.ac withenable.ac) is
# copyright Thomas Esser, 2002 and hereby put into the
# public domain.

# For conditions of distribution and use of the other files in this
# directory, see copyright notice in png.h.

kpse_include ../texk/make/common.mk
kpse_include ../texk/make/programs.mk
kpse_include ../texk/make/library.mk

ZLIBDIR=../zlib
ZLIBSRCDIR=$(srcdir)/$(ZLIBDIR)
XDEFS=-DPNG_NO_ASSEMBLER_CODE @ZLIBCPPFLAGS@

OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
        pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
        pngwtran.o pngmem.o pngerror.o pngpread.o

all: libpng.a

libpng.a: $(OBJS)
	rm -f $@
	$(AR) $(ARFLAGS) $@ $(OBJS)
	$(RANLIB) $@

kpse_include ../texk/make/clean.mk

clean::
	rm -f libpng.a pngtest pngout.png

# DO NOT DELETE THIS LINE -- make depend depends on it.

example.o: example.c
png.o: png.c png.h pngconf.h
pngerror.o: pngerror.c png.h pngconf.h
pnggccrd.o: pnggccrd.c png.h pngconf.h
pngget.o: pngget.c png.h pngconf.h
pngmem.o: pngmem.c png.h pngconf.h
pngpread.o: pngpread.c png.h pngconf.h
pngread.o: pngread.c png.h pngconf.h
pngrio.o: pngrio.c png.h pngconf.h
pngrtran.o: pngrtran.c png.h pngconf.h
pngrutil.o: pngrutil.c png.h pngconf.h
pngset.o: pngset.c png.h pngconf.h
pngtest.o: pngtest.c png.h pngconf.h
pngtrans.o: pngtrans.c png.h pngconf.h
pngvcrd.o: pngvcrd.c png.h pngconf.h
pngwio.o: pngwio.c png.h pngconf.h
pngwrite.o: pngwrite.c png.h pngconf.h
pngwtran.o: pngwtran.c png.h pngconf.h
pngwutil.o: pngwutil.c png.h pngconf.h
